<?php

function SacarCaracteresEspeciales($str)
{
  $str = str_replace("'", '', $str);
  $str = str_replace('×', '', $str);
  $str = str_replace('Þ', '', $str);
  $str = str_replace('ß', '', $str);

  return $str;
}

function ExtraerCaracteresNoASCII($string)
{
  return preg_replace('/[^(\x20-\x7F)]*/', '', $string);
}

?>